﻿using System;
using System.Collections.Generic;

namespace LyricTrackerPlugin
{
    public class Lrcer:ILrcer
    {
        public Lrcer()
        {
            
        }

        private readonly List<ILrcer> _lrcers = new List<ILrcer>() { new QianQianLrcer()
            {
                
            }
            , new BaiduLrcer() };

        public String DownloadLrc(Slippor.Douban.Radio.Assist.Song song)
        {
            foreach (var lrcer in _lrcers)
            {
                var result = lrcer.DownloadLrc(song);
                if(result != null)
                {
                    return result;
                }
            }
            return null;
        }
    }
}
